package com.syzg.base.merge.model;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

public class Operation implements Serializable
{
	private static final long serialVersionUID = 1L;
	
	private String id;
    private Module module;
    private String code;
    private String name;
    private String description;
    private Integer orderNo;
    private Set<RoleOperation> roleOperations;
	
	public Operation(){
        roleOperations = new HashSet<RoleOperation>(0);
    }

    public Operation(String id, String code){
        roleOperations = new HashSet<RoleOperation>(0);
        this.id = id;
        this.code = code;
    }

    public Operation(String id, Module module, String code, String name, String description, Integer orderNo, Set<RoleOperation> roleOperations){
        this.roleOperations = new HashSet<RoleOperation>(0);
        this.id = id;
        this.module = module;
        this.code = code;
        this.name = name;
        this.description = description;
        this.orderNo = orderNo;
        this.roleOperations = roleOperations;
    }

    public String getId(){
        return id;
    }

    public void setId(String id){
        this.id = id;
    }

    public Module getModule(){
        return module;
    }

    public void setModule(Module module){
        this.module = module;
    }

    public String getCode(){
        return code;
    }

    public void setCode(String code){
        this.code = code;
    }

    public String getName(){
        return name;
    }

    public void setName(String name){
        this.name = name;
    }

    public String getDescription(){
        return description;
    }

    public void setDescription(String description){
        this.description = description;
    }

    public Integer getOrderNo(){
        return orderNo;
    }

    public void setOrderNo(Integer orderNo){
        this.orderNo = orderNo;
    }

    public Set<RoleOperation> getRoleOperations(){
        return roleOperations;
    }

    public void setRoleOperations(Set<RoleOperation> roleOperations){
        this.roleOperations = roleOperations;
    }
}